package com.len.redisson.event.req;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RedisUnlockEventReq {

    //是否已获取锁
    private boolean lock;

    //获取锁开始时间
    private long startTime;

    //锁关键字
    private String lockKey;

    public RedisUnlockEventReq(boolean lock, String lockKey) {
        this.lock = lock;
        this.lockKey = lockKey;
    }
}